package com.blue.http.controller;

import org.springframework.stereotype.Component;

import com.blue.core.dict.HttpMethod;
import com.blue.http.annotation.Http;
import com.blue.http.message.HttpRequest;
import com.blue.http.message.View;
import org.springframework.stereotype.Controller;

/**
 * @author zhengjin
 * @since 1.0 2018年03月19日
 */
@Controller
@Http(url = "/ftl", method = HttpMethod.GET)
public class FtlController
{
	public FtlController()
	{
	}

	public Object index(HttpRequest request)
	{
		return View.createBuilder().setView("test")
				.put("title", "标题")
				.put("content", "测试 FreeMarker 内容")
				.build();
	}
}
